package pro.softzhang.algo.lc2400;


/**
 *
 */
public class LC2446_DetermineIfTwoEventsHaveConflict {
    public static void main(String[] args) {
        System.out.println(new Solution().haveConflict(new String[]{"10:00","11:00"}, new String[]{"14:00", "15:00"}));
    }

    /**
     * https://leetcode.cn/problems/determine-if-two-events-have-conflict/solution/pan-duan-liang-ge-shi-jian-shi-fou-cun-z-cqcv/
     */
    static
    class Solution {
        public boolean haveConflict(String[] event1, String[] event2) {
            return !(event1[1].compareTo(event2[0]) < 0 || event2[1].compareTo(event1[0]) < 0);
        }
    }
}
